<%--
  Created by IntelliJ IDEA.
  User: Stiofan
  Date: 2017/3/2
  Time: 16:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tags.jsp" %>

<aos:html title="人员查询比对分析" base="http" lib="ext">
    <aos:body>
    </aos:body>
</aos:html>
<aos:onready>
    <aos:viewport layout="fit">
        <aos:formpanel layout="column" columnWidth="1" border="false" autoScroll="true">
            <aos:docked dock="top" ui="footer" columnWidth="1" layout="column" border="false" height="50">
                <aos:fieldset title="比对分析条件" collapsible="false" border="true">

                    <aos:formpanel id="cxbdfxForm" layout="column" columnWidth="1">
                        <aos:hiddenfield id="bddyUuid" name="bddyUuid" value="${bddyUuid}"/>
                        <c:forEach items="${tjdys}" var="tjdys">
                            <c:choose>
                                <c:when test="${tjdys.tjlx=='textfield'}">
                                    <aos:textfield id="${tjdys.tjid}" name="${tjdys.tjid}" fieldLabel="${tjdys.tjmc}"
                                                   columnWidth="${tjdys.xscd}"/>
                                </c:when>
                                <c:when test="${tjdys.tjlx=='datefield'}">
                                    <aos:datefield id="${tjdys.tjid}" name="${tjdys.tjid}" fieldLabel="${tjdys.tjmc}"
                                                   columnWidth="${tjdys.xscd}"/>
                                </c:when>
                            </c:choose>
                        </c:forEach>
                    </aos:formpanel>
                </aos:fieldset>

            </aos:docked>
            <aos:gridpanel id="fcxxcxfxGrid" layout="fit" forceFit="true" columnWidth="1" autoScroll="true"
                           hidePagebar="true" url="cxbdfxCommonService.queryBdjgByBddyUuid">
                <aos:column id="jgmc" dataIndex="jgmc" header="分项数据比对名称" align="center"/>
                <aos:column id="jgz1" dataIndex="jgz1" header="以地控税查询结果" align="center"/>
                <aos:column id="jgz2" dataIndex="jgz2" header="核心征管查询结果" align="center"/>
                <aos:column id="jgz3" dataIndex="jgz3" header="外部数据查询结果" align="center"/>
                <aos:column id="bdjg" dataIndex="bdjg" header="分项数据比对结果" align="center"/>
            </aos:gridpanel>
            <aos:docked dock="bottom" ui="footer" columnWidth="1" layout="column" border="false">
                <aos:panel layout="column" columnWidth="1" border="false">
                    <aos:panel layout="column" columnWidth="0.25" center="true" animate="false" border="false">
                        <aos:button text="比对" columnWidth="0.5" margin="2" onclick="queryBdjgByBddyUuid"/>
                        <aos:button text="重置" columnWidth="0.5" margin="2" onclick=""/>
                    </aos:panel>
                </aos:panel>
            </aos:docked>
        </aos:formpanel>
    </aos:viewport>
    <script type="text/javascript">
        function queryBdjgByBddyUuid() {
            fcxxcxfxGrid_store.getProxy().extraParams=Ext.getCmp("cxbdfxForm").getValues();
            fcxxcxfxGrid_store.reload();
        }
    </script>
</aos:onready>
